Return the attributes to make this function work as boxed copy function.
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Sep 2005 20:26:50 +0000 (20:26 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 28 Sep 2005 20:26:50 +0000 (20:26 +0000)
2005-09-28  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
to make this function work as boxed copy function.  (#317455,
Gustavo Carneiro)

ChangeLog
ChangeLog.pre-2-10
gtk/gtktexttag.c

index cf354ebab1ddb13afbb94faf0ca93e0ba78716d0..337e5060988aad8478874dd4c3a00b64e739a8f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-09-28  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
+       to make this function work as boxed copy function.  (#317455,
+       Gustavo Carneiro)
+
        * gtk/gtkclipboard.c (request_image_received_func): Don't unref
        NULL.  (#316828, Tor Lillqvist)
 
index cf354ebab1ddb13afbb94faf0ca93e0ba78716d0..337e5060988aad8478874dd4c3a00b64e739a8f0 100644 (file)
@@ -1,5 +1,9 @@
 2005-09-28  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
+       to make this function work as boxed copy function.  (#317455,
+       Gustavo Carneiro)
+
        * gtk/gtkclipboard.c (request_image_received_func): Don't unref
        NULL.  (#316828, Tor Lillqvist)
 
index 99d831f43356fad964fc3c56570f11eee3b74c05..88fc06ab64f669a8aa519db27f41c54e1588d3ec 100644 (file)
@@ -2041,6 +2041,8 @@ gtk_text_attributes_copy_values (GtkTextAttributes *src,
  * @values: a #GtkTextAttributes
  * 
  * Increments the reference count on @values.
+ *
+ * Returns: the #GtkTextAttributes that were passed in
  **/
 void
 gtk_text_attributes_ref (GtkTextAttributes *values)
@@ -2048,6 +2050,8 @@ gtk_text_attributes_ref (GtkTextAttributes *values)
   g_return_if_fail (values != NULL);
 
   values->refcount += 1;
+
+  return values;
 }
 
 /**